package com.example.lotterysystem.controller.param;


import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class UserPasswordLoginParam extends UserLoginParam{
    // 手机或邮箱
    @NotBlank(message = "手机或邮箱不能为空！")
    private String loginName;

    // 密码
    @NotBlank(message = "密码不能为空！")
    private String password;


    public @NotBlank(message = "手机或邮箱不能为空！") String getLoginName() {
        return loginName;
    }

    public void setLoginName(@NotBlank(message = "手机或邮箱不能为空！") String loginName) {
        this.loginName = loginName;
    }

    public @NotBlank(message = "密码不能为空！") String getPassword() {
        return password;
    }

    public void setPassword(@NotBlank(message = "密码不能为空！") String password) {
        this.password = password;
    }
}
